using SX.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SX.BaseService.Service
{
    /// <summary>
	/// SysPermission服务接口
	/// </summary>
    public interface ISysPermissionService
    {
        /// <summary>
        /// 查询树形
        /// </summary>
        /// <returns></returns>
        Task<IApiResult> GetTree();
        Task<IApiResult> Query(MenuQueryModel model);
        Task<IApiResult> Add(MenuAddModel model);
        Task<IApiResult> Delete(string id);
        Task<IApiResult> Update(MenuUpdateModel model);
        Task<IApiResult> QueryById(string id);
        Task<IApiResult> Sort(string pid, string id, int flag);
    }
}